<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{lang Shopping_Shipping_Shopping_Shipping_Shopping}" />
<meta name="description" content="{lang Free_Shipping_goods}！" />
<link href="{TPL}css/AddItemPanel.css" rel="stylesheet" type="text/css" />
<script src="{TPL}js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="{TPL}js/jQuery.Extend.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Drag.min.js"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/List.css">
<script src="{TPL}js/jquery.cookies.2.1.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.json-1.3.min.js"></script>
<script type="text/javascript" src="{TPL}js/Gobal.js"></script>
<link href="{TPL}css/piece.css" rel="stylesheet" type="text/css" />
<link href="{TPL}css/quicklogin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{TPL}js/Piece.js"></script>

<title>
	[{$cfg_site_name}]-{lang Free_Shipping_goods}，{lang Free_domestic_shipping}
</title>
<style type="text/css">
.position span{float:none}
.pages {float:right;height:25px;margin:0px 10px 0px 0px;display:inline;overflow:hidden}
.pages li{list-style-type: none;}
.pages  a{text-decoration:none;}
.pages li{
border:1px solid #AAAAAA;color:#666666;display:inline;float:left;height:20px;line-height:20px;margin-left:2px;padding:0 5px;text-decoration:none;}
.pages li {border:1px solid #DDDDDD;color:#CCC;font-family:"simsun";}
.pages li:hover {background:#FFEDE1;border:1px solid #FF9900;}
.pages .current {background:#FFEDE1;border:1px solid #FF6600;color:#FF0000;}
.pages em {color:#999999;display:inline;float:left;height:22px;line-height:22px;margin-left:5px;}
</style>
    <script type="text/javascript">
        var cate="{$typename}",subcate="";
        $(document).ready(function() {
            var cateList = $(".caidan h3");
            cateList.children("a[title=" + cate + "]").parent("h3").addClass("t");
            if (subcate != "")
                $(".caidan li:contains('" + subcate + "')").addClass("x");
            var data = $.evalJSON(jaaulde.utils.cookies.get("shopscan"));
            if (data != null) {
                $.each(data, function(index, item) {
                    $("#scan").append("<li><a href='shop.php?action=view&gid=" + item["id"] + "'><img src='" + item["pimg"] + "' alt='" + item["n"] + "'  /></a></li>");
                });
            }
        });
    </script>
</head>
<body>
    <form name="" method="post" action="" id="">
	
{template 'header'}

<div class="piece_top"></div>
<div class="piece">
        <div class="leftpan">
            <div class="possible">

<h2>
                  <img src="{TPL}images/possible.gif" alt="搜索商品" /></h2>
                <div class="search">
                    <div class="select">
            <input id="categoryID" onfocus="this.blur();" onmouseout="this.className='';" onmouseover="this.className='bian';"
                            onclick="$('#categoryList').show()" readonly="readonly" type="text" value="所有分类"  categoryid="-1" />
        <div onclick="this.style.display='none';" class="sort" id="categoryList" style="display: none;">
	
	
		<a onclick="$('#categoryID').val('所有分类').attr('categoryid','0');" href="javascript:;"> {lang All_Categories}</a>
	
	{loop $listarr $r}
		<a onclick="$('#categoryID').val('{$r['typename']}').attr('categoryid','{$r['typeid']}');" href="javascript:;"> {$r['pre']}{$r['typename']}</a>
	{/loop}

		</div>
                    </div>
                    <input class="text" id="searchKeyword" onfocus="searchFocus()"
                        onblur="searchBlur()" name="" type="text" value="请输入商品名.." /><input
                            class="go" name="" onmouseover="this.className='go_'" onmouseout="this.className='go'"
                            onclick="searchPiece()" type="button" value="搜索" />
                </div>
                <ul class="tiao">
                    <li><b>{lang Per_page}：</b></li>
                    <li><a {if $ps==9}class="yellow"{/if} href="shop.php?action=list&tid={$tid}&ps=9">9</a></li>
                    <li><a {if $ps==12}class="yellow"{/if}  href="shop.php?action=list&tid={$tid}&ps=12">12</a></li>
                    <li><a {if $ps==24}class="yellow"{/if} href="shop.php?action=list&tid={$tid}&ps=24">24</a></li>
					
                </ul>
            </div>
            <div class="merchandise">
                
                <div class="remen ">
				
                   <div class="position">
                <p>
                    <b>{lang Location}：</b><a href="{url_recommend.php}">{lang Editor_Choice}</a>{$position}</p>
            </div>
							

                    <dl>
                        <dd></dd>
                    </dl>
                    
                    <span>
					{lang Total}：{$total} {lang Items}
                  </span>

                </div>
                
        <ul>
		
		
		{loop $dataarray $r}
		
          <li>
            <div class="pic"> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> <img src="{$r['goodsimg']}"
                                            alt="{$r['goodsname']}" onerror="this.src='{TPL}images/noimg220.gif';" /></a> </div>
            <div class="summary">
              <h1> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank" title="{$r['goodsname']}"> {$r['goodsname']}</a></h1>
              <p> ￥{$r['goodsprice']}</p>
              <div class="pd"><a href="###" onclick="FastAddShow('{url_$site_url/shop.php?action=view&gid=$r['gid']}')">{lang i_like_Shopping}</a><a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">查看详情</a></div>
              <dl>
                <dd> {lang Number_purchasing}：<span class="say">{$r['buynum']}{lang Times}</span></dd>
                <dd> {lang Views}：<span class="say">{$r['views']}{lang Times}</span></dd>
              </dl>
            </div>
          </li>
		{/loop}
		  
        </ul>
            </div>
      <div class="yj">
	  
			{echo pagelist($total,$pagesize,$page,"");}
			
      </div>
        </div>
		
		
    <div class="right">
      <div class="zuo">
        <div class="lm" style=" border-color:#DFDFDF; border-top:none;" > <img alt="热门商品分类" src="{TPL}images/fenlei.gif" /> </div>
        <div class="caidan" style=" border-color:#DFDFDF;">
	
		{loop $listarr $key $r}
		{if $r['node']==0}
          <h3 > <a title="{$r['typename']}" href="{url_shop.php?action=list&tid=$r['typeid']}"> <b> {$r['typename']}</b><span></span></a></h3>
          <ul>
			
			{loop $listarr $v}
			{if $v['node']==$r['typeid']}
            <li><a href="{url_shop.php?action=list&tid=$v['typeid']}"> {$v['typename']}</a></li>
			{/if}
			{/loop}
          </ul>
		{/if}
		{/loop}

        </div>

		
      </div>
      <div class="bz">
        <div class="h2"> <img src="{TPL}images/bang.gif" alt="风云榜" /> </div>
        <div class="bang">
          <div class="qh">
            <ul>
              <li class="on"><a onclick="mutiDiv(0)">{lang Top_Shopping}</a></li>
              <li><a onclick="mutiDiv(1)">{lang top_click}</a></li>
            </ul>
          </div>
          <div id="point" class="jifen">
		{loop $leftarray $key $r}  
            <dl>
              <dt style="display: none;">
                <div class="img">
				<a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">
				<img src="{$r['goodsimg']}" alt="{$r['goodsname']}" /></a> </div>
                <div class="xiangxi">
                  <h1> <i> {echo $key+1}.</i><a title="{$r['goodsname']}" href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">{substrs($r['goodsname'],35)}..</a></h1>
                  <label> ￥{$r['goodsprice']}</label>
                  <p> {lang Number_purchasing}：<i>{$r['buynum']}{lang Times}</i></p>
                </div>
              </dt>
              <dd onmouseover="showHotProInfo(this)">
			{if $key<3}
				<span>{echo $key+1}</span>
			{else}
				<b>{echo $key+1}</b>
			{/if}
                <p> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> {$r['goodsname']}</a></p>
              </dd>
            </dl>
		{/loop}
			
          </div>
          <div id="pieceNum" class="jifen" style="display: none;">
		  
		{loop $rightarray $key $r}  
            <dl>
              <dt style="display: none;">
                <div class="img">
				<a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">
				<img src="{$r['goodsimg']}" alt="{$r['goodsname']}" /></a> </div>
                <div class="xiangxi">
                  <h1> <i> {echo $key+1}.</i><a title="{$r['goodsname']}" href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank">{substrs($r['goodsname'],35)}..</a></h1>
                  <label> ￥{$r['goodsprice']}</label>
                  <p> {lang Number_purchasing}：<i>{$r['buynum']}{lang Times}</i></p>
                </div>
              </dt>
              <dd onmouseover="showHotProInfo(this)">
			{if $key<3}
				<span>{echo $key+1}</span>
			{else}
				<b>{echo $key+1}</b>
			{/if}
                <p> <a href="{url_shop.php?action=view&gid=$r['gid']}" target="_blank"> {$r['goodsname']}</a></p>
              </dd>
            </dl>
		{/loop}

          </div>
        </div>
      </div>
	  
        <div class="lately">
          <h2> <img src="{TPL}images/lately.gif" /></h2>
          <ul id="scan">
          </ul>
        </div>

    </div>
    </div>

{template 'footer'}
</form>

</body>
</html>

